package code1;

public class FishandLake {
	public static void main(String[] args) {
		Fish niqiu = new Fish();
		System.out.println(niqiu.weight);
		Lake taihu  = new Lake();
		Lake boyang = new Lake();
		Lake dongting = new Lake();
		taihu.setFish(niqiu);
		taihu.eat(15);
		boyang.setFish(niqiu);		
		dongting.setFish(niqiu);		
		System.out.println(taihu.fish.weight);
		System.out.println(dongting.fish.weight);
		System.out.println(boyang.fish.weight);
		boyang.eat(25);
		System.out.println(taihu.fish.weight);
		System.out.println(dongting.fish.weight);
		System.out.println(boyang.fish.weight);
	}
}
